<h1>Docker search 命令</h1>
<p><strong>docker search :</strong> 从Docker Hub查找镜像</p>
<h3>语法</h3>
<pre><code class="language-Docker">docker search [OPTIONS] TERM</code></pre>
<p>OPTIONS说明：</p>
<ul>
<li><p><strong>--automated :</strong>只列出 automated build类型的镜像；</p></li>
<li><p><strong>--no-trunc :</strong>显示完整的镜像描述；</p></li>
<li><p><strong>-s :</strong>列出收藏数不小于指定值的镜像。</p></li>
</ul>
<h3>实例</h3>
<p>从Docker Hub查找所有镜像名包含java，并且收藏数大于10的镜像</p>
<pre><code class="language-Docker">runoob@runoob:~$ docker search -s 10 java

NAME                  DESCRIPTION                           STARS   OFFICIAL   AUTOMATED

java                  Java is a concurrent, class-based...   1037    [OK]       

anapsix/alpine-java   Oracle Java 8 (and 7) with GLIBC ...   115                [OK]

develar/java                                                 46                 [OK]


lwieske/java-8        Oracle Java 8 Container - Full + ...   27                 [OK]

nimmis/java-centos    This is docker images of CentOS 7...   13                 [OK]

</code></pre>
